<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>   
<%
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">  
<html>
  <head>
    <base href="<%=basePath%>">  
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/edittable.css"  ></link>  
	<link rel="stylesheet" type="text/css" href="css/validate.css"  ></link>  
	<script type="text/javascript"  src="js/jquery-1.8.0.js"></script>
	<script>		
			$(function(){
				$("#btn").click(function(){
					window.location.href='MemberServlet.do?flag=manage';
				});
			});
			
	</script>
	<style>
		input{
			color:red;
		}
	</style>
  </head>
  
  <body>
    <div class ="div_title">
		 <div class="div_titlename"> <img src="images/san_jiao.gif" ><span>会员管理会员信息</span></div>
	 </div>
				 
		 <table class="edit_table" >
		 		<tr>
		 			 	<td class="td_info">会员账号:</td>	
		 			 	<td class="td_input_short"> 
		 			 		<input type="text" class="txtbox"  name="memberName" readonly="readonly" value="${memberInfo.memberNo }"/> 
		 			 	</td>   
		 			 	<td class="td_info">会员姓名:</td> 
		 			 	<td class="td_input_short"> 
		 			 		<input type="text" class="txtbox" readonly="readonly" value="${memberInfo.memberName }" /> 
		 			 	</td>
		 			 	
		 		</tr>
		 		<tr>
		 			<td class="td_info">联系电话:</td>	
		 			 	<td class="td_input_short"> 
		 			 		<input type="text" class="txtbox" readonly="readonly" value="${memberInfo.phone }"  /> 
		 			 	</td>   
		 			 	<td class="td_info">电子邮箱:</td> 
		 			 	<td class="td_input_short"> 
		 			 		<input type="text" class="txtbox" readonly="readonly" value="${memberInfo.email }"  /> 
		 			 	</td>
		 		</tr>
		 		<tr>
		 				<td class="td_info">注册日期:</td>	
		 			 	<td class="td_input_short"> 
		 			 		<input type="text" class="txtbox" readonly="readonly" value="${memberInfo.registerDate }"  /> 
		 			 	</td>   
		 			 	<td class="td_info">身份证号:</td> 
		 			 	<td class="td_input_short"> 
		 			 		<input type="text" class="txtbox" readonly="readonly" value="${memberInfo.idCard }"  /> 
		 			 	</td>
		 		</tr>
		 		<tr>
		 			<td class="td_info">登录次数:</td>	
		 			 	<td class="td_input_short"> 
		 			 		<input type="text" class="txtbox" readonly="readonly" value="${memberInfo.loginCounts }"  /> 
		 			 	</td>   
		 			 	<td class="td_info">最后登陆时间:</td> 
		 			 	<td class="td_input_short"> 
		 			 		<input type="text" class="txtbox" readonly="readonly" value="${memberInfo.lastLoginDate }"  /> 
		 			 	</td>
		 		</tr>
		 		<tr>
		 			<td class="td_info">会员常用ip:</td>	
		 			 	<td class="td_input_short" id="ip"> 
		 			 		 
		 			 	</td>   
		 			 	<td class="td_info">会员等级:</td> 
		 			 	<td class="td_input_short"> 
		 			 		<input type="text" class="txtbox" readonly="readonly" value="${memberInfo.memberLevel }" name="adminName" /> 
		 			 	</td>
		 		</tr>
		 		<tr>
		 			<td class="td_info"> </td>	
			 			<td> 
			 			<button id="btn">返回</button>
			 			</td>	
		 			<td>
		 			</td>	
		 		</tr>
		</table>
		<script type="text/javascript">
			var ip = "${memberInfo.ip}";
			if(ip!=""){
				var ips = ip.split(",");
				for(var i=0;i<ips.length;i++){
					var str = "<input type='text' class='txtbox' readonly='readonly' value='"+ips[i]+"' />"
					$("#ip").append(str);
					if(i>=4){
						break;
					}
				}	
			}else{
				var str = "<input type='text' class='txtbox' readonly='readonly' />"
				$("#ip").append(str);
			}
		</script>
  </body>
</html>